package com.hippo.core.state

data class CleanState(
    val isLoading:Boolean = false,
    val timeId:String? = null,
    val hour:Int = 0,
    val minute:Int = 0,
    val repeat:String ? = null,
    val notice:Boolean = true,
    val mode:Int = 1,
    val loops:String = "0000000",
)

fun CleanState.getTime():String{
    return String.format("%02d", hour)+":"+String.format("%02d", minute)
}
